package 第5章多线程编程作业.Work1.Work4;

public class PaoBu implements Runnable {


    public void run() {
        System.out.println(Thread.currentThread().getName() + "接棒");
        synchronized (new PaoBu()) {
            for (int j = 10; j < 110; j += 10) {
                System.out.println(Thread.currentThread().getName() + "跑完" + j + "米");
            }
            System.out.println(Thread.currentThread().getName() + "完成此次100米比赛***********");
        }
    }
}